package com.controller.wmt;

import com.service.wmt.TotalService;
import com.util.gzp.AjaxResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("total")
public class TotalController {
    @Resource
    private TotalService totalService;

    @RequestMapping("findAllCompany")
    @ResponseBody
    public AjaxResponse findAllCompany(){
        AjaxResponse ajaxResponse = AjaxResponse.success(totalService.findAllCompany());
        return ajaxResponse;
    }
    @RequestMapping("findAllLandUse")
    @ResponseBody
    public AjaxResponse findAllLandUse(){
        AjaxResponse ajaxResponse = AjaxResponse.success(totalService.findAllLanduse());
        return ajaxResponse;
    }
    @RequestMapping("findAllLandOwner")
    @ResponseBody
    public AjaxResponse findAllLandOwner(){
        AjaxResponse ajaxResponse = AjaxResponse.success(totalService.findAllLandownership());
        return ajaxResponse;
    }
    @RequestMapping("findAllRoomtype")
    @ResponseBody
    public AjaxResponse findAllRoomtype(){
        AjaxResponse ajaxResponse = AjaxResponse.success(totalService.findAllRoomtype());
        return ajaxResponse;
    }
    @RequestMapping("findAllDesign")
    @ResponseBody
    public AjaxResponse findAllDesign(){
        AjaxResponse ajaxResponse = AjaxResponse.success(totalService.findAllDesignpurposes());
        return ajaxResponse;
    }
    @RequestMapping("findAllStruct")
    @ResponseBody
    public AjaxResponse findAllStruct(){
        AjaxResponse ajaxResponse = AjaxResponse.success(totalService.findAllBuildingstructure());
        return ajaxResponse;
    }
    @RequestMapping("findAllMethod")
    @ResponseBody
    public AjaxResponse findAllMethod(){
        AjaxResponse ajaxResponse = AjaxResponse.success(totalService.findAllGainingmethod());

        return ajaxResponse;
    }
    @RequestMapping("findAllArea")
    @ResponseBody
    public AjaxResponse findAllArea(){
        AjaxResponse ajaxResponse = AjaxResponse.success(totalService.findAllAreas());

        return ajaxResponse;
    }
    @RequestMapping("findAllLandNumber")
    @ResponseBody
    public AjaxResponse findAllLandNumber(){
        AjaxResponse ajaxResponse = AjaxResponse.success(totalService.findAllLandnumber());

        return ajaxResponse;
    }
    @RequestMapping("findAllbuildingare")
    @ResponseBody
    public AjaxResponse findAllbuildingare(){
        AjaxResponse ajaxResponse = AjaxResponse.success(totalService.findAllBuildingarea());

        return ajaxResponse;
    }

}
